Better appearance integration, allowing easy themeability #7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
I just merged your last changes (basically identical to mine, of course) so you should not get conflicts anymore if you will accept this pull request.
What I tried to do in this code is basically make the appearance of new GTG columns just like the
Calendar.EventsList
. To achieve the goal, now the items in GTG columns rely on CSS classes used inCalendar.EventsList
rather than the ones set instylesheet.css
. The latter are still used if the optionUse system theme
is turned off, so that the user can override the system theme. That way, the appearance will be consistent even if the user changes the shell theme (using the User Themes extension).I had to use some vodoo (
xyz.actor.remove_style_class_name("foo")
because the GTG menu is built in a completely different way than theCalendar.EventsList
(usingPopupMenuItem
for headers too).So, in short:
Use system theme
isOn
, theCalendar.EventsList
CSS classes are used (plus some tweak instylesheet.css
.Use system theme
isOff
, the*-custom
CSS classes instylesheet.css
are used, completely overriding the system theme.As a plus:
gtgtodomenus.js
I hope the changes will be considered useful. Of course, we can discuss anything, if you want. Thanks for your work, anyway. And happy holidays!